export default{
    state:{
        rid: -1,
        userInfo:(localStorage.getItem("loginData")&&JSON.parse(localStorage.getItem("loginData")))||{}
    },
    mutations:{
        setUserInfo(state,uInfo){
            state.userInfo=uInfo
        },
        setRid(state,rid){
            state.rid=rid
        },
    },
     getters: {
        getRid(state){
          return state.rid
        }
      }
}